<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Trisoc Social Game</title>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>	

</head>
<body style="margin:0"  >
	<div id="flashContent">
		<h1>You need at least Flash Player 9.0 to view this page.</h1>
		<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
	</div>  
	<script type="text/javascript">
		function getUrlVars() {
		    var vars = {};
		    var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
		        vars[key] = value;
		    });
		    return vars;
		}
		//Dynamic publishing with swfObject requires a name attribute passed in to support Chrome/Mozilla browsers
		var fv = getUrlVars();
		for(var i in fv)
			document.write(i+" = "+fv[i]+"<br/>");

		fv.clientUrl = fv.clientUrl ? fv.clientUrl : "http://localhost:3333/swf/game/";
		fv.wrapperUrl = fv.wrapperUrl ? fv.wrapperUrl : "http://localhost:3333/swf/wrapper/";
		fv.serverUrl = fv.serverUrl ? fv.serverUrl : "http://localhost:3333/jsp/gateway.jsp";
	    
		fv.network		= "vk";
		fv.gameSwf		= "main.swf";
		
		fv.version		= "1";
		
		//swfobject.embedSWF("main.swf", "myContent", "630", "645", "9.0.0", "expressInstall.swf", flashvars, {});
		swfobject.embedSWF(fv.wrapperUrl + "wrapper.swf", "flashContent", "760", "640", "9.0", "expressInstall.swf", fv, null, {name:"flashContent", wmode:"opaque"}); 			
	</script>
</body>
</html>